﻿using System;

namespace _04_Console
{
    internal class Program
    {
        static void Main(string[] args)
        {
            #region 作业
            // 比较任意三个整数，获取最大值、最小值
            //int a = 10;
            //int b = 5;
            //int c = 30;
            //int max = (a > b ? a : b) > c ? (a > b ? a : b) : c;
            //int min = (a < b ? a : b) < c ? (a < b ? a : b) : c;
            //Console.WriteLine(max);
            //Console.WriteLine(min);

            /*
             * 王者的交换写法
             */
            //string a = Console.ReadLine();
            //string b = Console.ReadLine();
            //int a1 = int.Parse(a);
            //int b1 = int.Parse(b);
            //a1 = a1 + b1;
            //b1 = a1 - b1;
            //a1 = a1 - b1;
            //Console.WriteLine($"{a1},{b1}");

            #endregion

            #region 类型转换
            string a = Console.ReadLine();
            int b = Convert.ToInt32(a);
            Console.WriteLine(b);


            #endregion
        }
    }
}
